home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / Timing / EngClock96.lha / EngClock96 / Source / about.c next >
Encoding:
C/C++ Source or Header  |  1996-01-06  |  2.3 KB  |  74 lines

  1. #include <intuition/intuition.h>
  2. #include <exec/types.h>
  3. #include <clib/intuition_protos.h>
  4. #include <libraries/arq.h>
  5. #include <string.h>
  6.  
  7.  
  8. extern struct Window *win_p;
  9. extern void msg(char *text);
  10.  
  11. extern int language;
  12.  
  13. #define ENGLISH 1
  14. #define FRENCH 2
  15. #define SPANISH 3
  16.  
  17.  
  18. BOOL about(void) {
  19.     /* New about routine, this one uses a requester! */
  20.     /* Updated again to have more than one line! */
  21.  
  22.     /* Further updated to allow big fonts */
  23.  
  24.     /* Other */
  25.     char text[1000];
  26.     struct ExtEasyStruct easypeasy;
  27.  
  28.     /* First set up text lines */
  29.  
  30.     switch(language) {
  31.         case ENGLISH:
  32.         case FRENCH:
  33.             strcpy(text,"English Clock '96 © 1995 by Ben Matthew\n\n");
  34.             strcat(text,"This program is FREEWARE - this means that it is freely\n");
  35.             strcat(text,"distributable!.  No money should have been paid for this\n");
  36.             strcat(text,"program, only enough to cover copying costs.\n\n");
  37.             strcat(text,"To send any comments, bug reports or donations contact me at:\n");
  38.             strcat(text,"   Ben Matthew\n");
  39.             strcat(text,"   16 Blackthorn Close,\n");
  40.             strcat(text,"   West Kingsdown,\n");
  41.             strcat(text,"   Sevenoaks,\n");
  42.             strcat(text,"   Kent.  TN15 6UF\n\n");
  43.             strcat(text,"Spanish text by Dámaso Domínguez Estévez - Many thanks!\n\n");
  44.             strcat(text,"Long live the Amiga!");
  45.         break;
  46.         case SPANISH:
  47.             strcpy(text,"English Clock '96 © 1995 por Ben Matthew\n\n");
  48.             strcat(text,"Este programa es FREEWARE: ¡gratuíto y de libre distribución!\n");
  49.             strcat(text,"No debe pagar nada por este programa, sólo lo sufficiente\n"); 
  50.             strcat(text,"para cubrir los costes de copiado\n\n");
  51.             strcat(text,"Envie sus comentarios, informe sobre errores, donaciones a:\n");
  52.             strcat(text,"   Ben Matthew,\n");
  53.             strcat(text,"   16 Blackthorn Close,\n");
  54.             strcat(text,"   West Kingsdown,\n");
  55.             strcat(text,"   Sevenoaks,\n");
  56.             strcat(text,"   Kent.  TN15 6UF.  (England)\n\n");
  57.             strcat(text,"Traducción al español por Dámaso Domínguez Estévez\n\n");
  58.             strcat(text,"¡Larga vida al Amiga!");
  59.         break;
  60.         default:
  61.             msg("Internal error! (Language !=0,1,2)");
  62.             return(0);
  63.         break;
  64.     }
  65.  
  66.     easypeasy.Magic=ARQ_MAGIC;
  67.     easypeasy.AnimID=ARQ_ID_INFO;
  68.     easypeasy.Easy.es_Title=" ";
  69.     easypeasy.Easy.es_TextFormat=text;
  70.     easypeasy.Easy.es_GadgetFormat="Continue";
  71.  
  72.     EasyRequest(win_p,&easypeasy.Easy,NULL,NULL);
  73. }
  74.